package edu.scau.mis.web.controller;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import edu.scau.mis.cloth.service.GsDeliveryService;

import java.util.List;
import java.util.Map;

/**
 * (GsAttrs)表控制层
 *
 * @author CJW
 * @since 2022-04-02 20:28:04
 */
@RestController
@RequestMapping("gsDelivery")
public class GsDeliveryController {
    /**
     * 服务对象
     */
    @Autowired
    private GsDeliveryService gsDeliveryService;
//    分页显示出库信息
    @GetMapping("/queryAll")
    public PageInfo queryAll(@RequestParam("pageNum")Integer pageNum, @RequestParam("pageSize")Integer pageSize){
        PageHelper.startPage(pageNum,pageSize);
        List<Map<String,Object>> list=gsDeliveryService.queryAll();
        PageInfo pageInfo=new PageInfo(list);
        return pageInfo;
}
}

